package com.testmycat.zbf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author: LCG
 * @date: 2022-05-13 10:22:57
 * @description:
 **/
@TableName("user_info")
@Data
public class UserInfo {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("userName")
    private String userName;

    private String address;

    @TableField("roleName")
    private String roleName;

    private int age;

    @TableField("dateTime")
    private Date dateTime;

    @TableField("userInfo")
    private String userInfo;

    @TableField(value = "friends",typeHandler = FastjsonTypeHandler.class)
    private List<String> friends;

    @TableField("weiXin")
    private String weiXin;

    private String douyin;

}
